import { post } from '@/utils/request'

export default {
  getUserPageList: query => post('/api/admin/user/page/list', query),
  getUserHistoryPageList: query => post('/api/admin/user/page/listHistory', query),
  getUserEventPageList: query => post('/api/admin/user/event/page/list', query),

  createUser: query => post('/api/admin/user/edit', query),
  createHistoryUser: query => post('/api/admin/user/editHistory', query),

  selectUser: id => post('/api/admin/user/select/' + id),
  getCurrentUser: () => post('/api/admin/user/current'),
  updateUser: query => post('/api/admin/user/update', query),
  changeStatus: id => post('/api/admin/user/changeStatus/' + id),
  deleteUser: id => post('/api/admin/user/delete/' + id),


  createTeacherTutor: query => post('/api/admin/teacher/editTutor', query),
  createTeacher: query => post('/api/admin/teacher/edit', query),

  selectTeacher: id => post('/api/admin/teacher/select/' + id),

  getTeacherPageList: query => post('/api/admin/teacher/page/list', query),
  getTeacherTutorPageList: query => post('/api/admin/teacher/page/listTutor', query),

  changeTeacherStatus: id => post('/api/admin/teacher/changeStatus/' + id),
  deleteTeacher: id => post('/api/admin/teacher/delete/' + id),

  updateCourseTutor: query => post('/api/admin/teacher/editTutor', query),

  selectByUserName: query => post('/api/admin/user/selectByUserName', query)
}
